package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_17 {
    public static void main(String[] args) {
        System.out.println("Enter the temperature in Fahrenheit between -58°F and 41°F：");
        Scanner sc =new Scanner(System.in);
        double ta=sc.nextDouble();
        System.out.print("Enter the wind speed (>=2) in miles per hour：");
        double v=sc.nextDouble();
        double twc=35.74+0.6215*ta-35.75*Math.pow(v,0.16)+0.4275*ta*Math.pow(v,0.16);
        System.out.printf("The wind chill index is %.5f\n",twc);
    }
}
